


#define NOT_REPLACE_USABLE_SIZE
#include "base_malloclib.h"


#include <metalc/mladt/xorcode.h>
#include <metalc/mlos/tsysmalloc.h>


/* 配置delayed层 */
#include <metalc/mladt/delayed.h>
DEF_DELAYED_MLAYER(delayed_normal, 64 * 1024, mlcc_palloc, output)

/* 定义allocator */
/* malloc -> delayed -> xor -> tsysmalloc */
COMPOSE_MLAYER(dbgdmlc, mallocapi, delayed_normal, xor_tail, tsysmalloc)


DEF_MTLS_PTHREAD(GET_MLAYER_OBJNR(dbgdmlc), QUERY_CPUFREQ, mlcc_palloc, mp_coreid)

/* mlcc和mtls一定要放在第一位初始化 */
DEF_SYSINIT(malloc_perm_pool, mtls, dbgdmlc)
DEF_CFLOWFIN(mtls)
DEF_CFLOWINIT(mtls, dbgdmlc)
DEF_SYSFIN(__omega)